import auditReducer from '../pages/audit/reducers';
import securityReducer from '../pages/security/reducers';
import backupReducer from '../pages/backup/reducers';
import cryptoReducer from '../pages/crypto/reducers';
import adminsReducer from '../pages/admins/reducers';
import securityNotifyReducer from '../pages/securityNotify/reducers';
import repositoryPermissionsReducer from '../pages/repositoryPermissions/reducers';
import riskManageReducer from '../pages/risk/reducers';
import customizeReducer from '../pages/customize/reducers';
import groupPermissionsReducer from '../pages/groupPermissions/reducers';
import webhookReducer from '../pages/webhooks/reducers';

import settingsReducer from './settingsReducer';

export default function () {
  const indexReducer = {
    audit: auditReducer,
    security: securityReducer,
    admins: adminsReducer,
    securityNotify: securityNotifyReducer,
    repositoryPermissions: repositoryPermissionsReducer,
    groupPermissions: groupPermissionsReducer,
    risk: riskManageReducer,
    customize: customizeReducer,
    webhooks: webhookReducer,
    backup: backupReducer,
    crypto: cryptoReducer,
    settings: settingsReducer,
  };

  return indexReducer;
}
